<!-- 库存 -->
<template>
  <div>
    <!-- <div style="text-align:center">
      <Tabs :data="tabsName" class="tabcss" @change="handleClick" />
    </div> -->
    <Inventory v-if="tabsVal===1" />
    <!-- <Stock v-if="tabsVal===2" />
    <WriteOff v-if="tabsVal===3" /> -->
  </div>
</template>
<script>
// import Tabs from "@/components/SearchSelection";
import Inventory from "./inventory";
// import Stock from "./stock";
// import WriteOff from "./writeOff";
import "@/assets/styles/common.scss";
export default {
  name: "InventoryIndex",
  components: {
    Inventory,
    // Stock,
    // WriteOff,
    // Tabs,
  },
  data() {
    return {
      tabsName: [
        { id: 1, name: "库存" },
        { id: 2, name: "进货" },
        { id: 3, name: "冲减" },
      ],
      tabsVal: 1,
    };
  },
  methods: {
    handleClick(tab) {
      // console.log(tab);
      this.tabsVal = tab;
    },
  },
};
</script>
<style lang="scss" scoped>
</style>
